package com.supply.dl.widget.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.supply.dl.R;

/**
 * 直播间内部贡献排行榜的适配器
 */
public class CheckCartAdapter extends RecyclerView.Adapter<CheckCartAdapter.MyViewHolder> {
    private Context mContext;

//    private LinkedList<CartResult> rankResults = new LinkedList<CartResult>();

    public CheckCartAdapter(Context context) {
        this.mContext = context;
    }

    @Override
    public CheckCartAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return new CheckCartAdapter.MyViewHolder(LayoutInflater.from(mContext).inflate(R.layout.item_check_cart, parent, false));
    }

    @Override
    public void onBindViewHolder(CheckCartAdapter.MyViewHolder holder, int position) {


    }

    @Override
    public int getItemCount() {
        return 5;
    }

    class MyViewHolder extends RecyclerView.ViewHolder {
        private TextView txtRoomRank;
        private TextView txtName;
        private TextView txtOfferNum;

        public MyViewHolder(View itemView) {
            super(itemView);

        }
    }
}
